package com.ktg.mes.pro.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ktg.mes.pro.domain.ProRouteProcess;
import com.ktg.mes.pro.domain.ProRouteProcessData;
import com.ktg.mes.pro.domain.ProTask;
import com.ktg.mes.rec.domain.RecProcessesExt;
import org.springframework.security.core.parameters.P;

/**
 * 工艺组成Mapper接口
 *
 * @author yinjinlu
 * @date 2022-05-13
 */
public interface ProRouteProcessMapper extends BaseMapper<ProRouteProcess>
{


     /**
    * 查询工艺组成列表
    *
    * @param proRouteProcess 工艺组成
    * @return 工艺组成集合
    */
    public List<ProRouteProcess> selectProRouteProcessList(ProRouteProcess proRouteProcess);

    public ProRouteProcess checkOrderNumExists(ProRouteProcess proRouteProcess);
    public ProRouteProcess checkProcessExists(ProRouteProcess proRouteProcess);

    public ProRouteProcess findPreProcess(ProRouteProcess proRouteProcess);

    public ProRouteProcess findNextProcess(ProRouteProcess proRouteProcess);




    /**
     * 根据工艺路线ID删除所有工序配置
     * @param routeId
     * @return
     */
    public int deleteByRouteId(Long routeId);

    /**
     * 查询打印流程单数据(流程)
     * @param task
     * @return
     */
    List<ProRouteProcessData> selectTaskProcessFromBatchNo(ProTask task);



}
